﻿using System;
using System.Collections.Generic;

using Job.Core.Data;
using Job.Core.Module;

namespace Job.Core.Data
{
    /// <summary>
    /// 数据仓储接口 基类
    /// </summary>
    public interface IInterface<TModel>
    {

        #region 

        /// <summary>
        /// 添加
        /// </summary>
        bool Create(TModel model);

        /// <summary>
        /// 更新
        /// </summary>
        bool Update(TModel model);

        /// <summary>
        /// 删除
        /// </summary>
        bool Delete(TModel model);

        /// <summary>
        /// 获得Article实例。
        /// </summary>
        TModel Get(Int32 id);

        /// <summary>
        /// 返回Article列表。
        /// </summary>
        IEnumerable<TModel> GetList();

        #endregion


    }
}
